//营销 API
import request from '@/api/myRequest'
function getMarketList() {
  return request({
    url: '/lejuAdmin/homeRecommend/findAllRecommends',
    method: 'GET'
  })
}
function delMarketList(recommendId) {
  return request({
    url: `/lejuAdmin/homeRecommend/delRecommend/${recommendId}`,
    method: 'DELETE'
  })
}
function getadvertise() {
  return request({
    url: '/lejuAdmin/advertise/adsList',
    method: 'GET'
  })
}
//删除广告
export function delAds(adsId) {
  return request({
    url: `/lejuAdmin/advertise/delAds/${adsId}`,
    method: 'DELETE',
  })
}
// function getMarketList() {
//   return request({
//       url: `/lejuAdmin/homeRecommend/findAllRecommends`, // 相对路径
//       method: 'get'
//   })
// }
export default {
  getMarketList,
  delMarketList,
  getadvertise,
  delAds

}


